Class sjl.Array
All Packages Class Hierarchy This Package Previous Next Index
Class sjl.Array
java.lang.Object
|
+----sjl.Array
- public class Array
- extends Object
The Array
class contains static functions that makes
it possible to use the java builtin arrays in combination with the
algorithms.
The functions below will return random iterators for the beginning and
past-the-end for argument array.
This example shows how the array iterator adapters can be used with the
generic algorithms.
String array[] = new String[20];
Vector vector(20);
// fill the array with strings.
...
// Copy the contents of the array into the vector.
Algo.copy(Array.begin(array), Array.end(array),
new BackInsertIterator(vector));
Copyright © 1996 Finn Bock
-
begin(boolean[])
- Return an array iterator adapter for the beginning of the array
-
begin(boolean[], int)
- Return an array iterator adapter for a position in the array
-
begin(byte[])
- Return an array iterator adapter for the beginning of the array
-
begin(byte[], int)
- Return an array iterator adapter for a position in the array
-
begin(char[])
- Return an array iterator adapter for the beginning of the array
-
begin(char[], int)
- Return an array iterator adapter for a position in the array.
-
begin(double[])
- Return an array iterator adapter for the beginning of the array
-
begin(double[], int)
- Return an array iterator adapter for a position in the array
-
begin(float[])
- Return an array iterator adapter for the beginning of the array
-
begin(float[], int)
- Return an array iterator adapter for a position in the array
-
begin(int[])
- Return an array iterator adapter for the beginning of the array
-
begin(int[], int)
- Return an array iterator adapter for a position in the array
-
begin(Object[])
- Return an array iterator adapter for the beginning of the array
-
begin(Object[], int)
- Return an array iterator adapter for a position in the array
-
begin(short[])
- Return an array iterator adapter for the beginning of the array
-
begin(short[], int)
- Return an array iterator adapter for a position in the array
-
begin(String)
- Return an array iterator adapter for the beginning of the array
-
begin(String, int)
- Return an array iterator adapter for a position in the string.
-
begin(StringBuffer)
- Return an array iterator adapter for the beginning of the array
-
begin(StringBuffer, int)
- Return an array iterator adapter for a position in the string.
-
end(boolean[])
- Return an array iterator adapter for the end of the array
-
end(byte[])
- Return an array iterator adapter for the end of the array
-
end(char[])
- Return an array iterator adapter for the end of the array
-
end(double[])
- Return an array iterator adapter for the end of the array
-
end(float[])
- Return an array iterator adapter for the end of the array
-
end(int[])
- Return an array iterator adapter for the end of the array
-
end(Object[])
- Return an array iterator adapter for the end of the array
-
end(short[])
- Return an array iterator adapter for the end of the array
-
end(String)
- Return an array iterator adapter for the end of the array
-
end(StringBuffer)
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(Object array[])
- Return an array iterator adapter for the beginning of the array
end
public static RandomIterator end(Object array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(Object array[],
int pos)
- Return an array iterator adapter for a position in the array
begin
public static RandomIterator begin(byte array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(byte array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(byte array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(short array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(short array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(short array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(int array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(int array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(int array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(float array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(float array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(float array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(double array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(double array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(double array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(boolean array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(boolean array[],
int pos)
- Return an array iterator adapter for a position in the array
end
public static RandomIterator end(boolean array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(char array[])
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(char array[],
int pos)
- Return an array iterator adapter for a position in the array.
end
public static RandomIterator end(char array[])
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(String string)
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(String string,
int pos)
- Return an array iterator adapter for a position in the string.
end
public static RandomIterator end(String string)
- Return an array iterator adapter for the end of the array
begin
public static RandomIterator begin(StringBuffer string)
- Return an array iterator adapter for the beginning of the array
begin
public static RandomIterator begin(StringBuffer string,
int pos)
- Return an array iterator adapter for a position in the string.
end
public static RandomIterator end(StringBuffer string)
- Return an array iterator adapter for the end of the array
All Packages Class Hierarchy This Package Previous Next Index